package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.AttractionComment;
import cn.wolfcode.luowowo.comment.query.AttractionCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * 景点评论
 */
public interface IAttractionCommentService {

    /**
     * 插入一条评论
     * @param attractionComment
     */
    void saveOrUpdate(AttractionComment attractionComment);

    /**
     * 查询所有评论带分页
     * @param qo
     * @return
     */
    Page<Object> query(AttractionCommentQuery qo);

    /**
     * 通过ObjectId 查一级评论
     * @param pid
     * @return
     */
    AttractionComment get(String pid);

    List<AttractionComment> getByUserId(Long uid);

}
